<!-- internationalisation -->
{% load i18n %}
	{{ form.media }}
	<script>
		$(function()
		{
			$('#btn_save').button(
		    {
				text: true,
		        icons:  {
		                    primary: 'ui-icon-disk'
		                }
		    });
        	$( "#id_date_livraison" ).datepicker({ dateFormat: 'yy-mm-dd' });
		});
	</script>
    <div>
        <form action="{{ url }}" method="post" {% block filetag %}{% endblock %}>
        	<tr>
                	<h1 style="text-align: center; color:#F78F07;font-size: 20px">{{titre}}</h1>
            </tr>
        	
            {% csrf_token %}
            <table class="ui-widget shadowblack table_asgard">
                {% for field in form.visible_fields %}
                	
					<tr>
						<th class="ui-widget-header{% if forloop.first %} ui-corner-tl{% endif %}" style="text-align: left;">{{ field.label_tag }} :</th>
						<td class="ui-widget-content{% if forloop.first %} ui-corner-tr{% endif %}">{{ field }}<br/>{{ field.help_text }}</td>
					</tr>
				{% endfor %}
				{% for hidden in form.hidden_fields %}
			    	{{ hidden }}
			    {% endfor %}
                <tr>
                    <td class="ui-widget-content ui-corner-bottom" style="padding: 15px; text-align: center;background: none repeat scroll 0 0 black;" colspan="2">
						<button class="button" type= "submit" id="btn_save">
							Enregistrer
						</button>
                    </td>
                </tr>
            </table>
        </form>
    </div>